package cn.edu.seu.cose.qol.model.dto.question;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name = "questionBase", propOrder = {"_baseName", "_briefQuestions"})
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "questionbase")
public class QuestionBaseInstance {

	@XmlAttribute(name = "name")
	private String _baseName;
	
	@XmlElement(name = "question")
	private AddressableQuestionInstance[] _addressableQuestions;
	
	public QuestionBaseInstance() {
		this(null, new AddressableQuestionInstance[0]);
	}
	
	public QuestionBaseInstance(String baseName, AddressableQuestionInstance[] briefQuestions) {
		_addressableQuestions = briefQuestions;
	}
	
	public AddressableQuestionInstance[] getAddressableQuestions() {
		return _addressableQuestions;
	}
	
	public void setAddressableQuestions(AddressableQuestionInstance[] addressableQuestions) {
		_addressableQuestions = addressableQuestions;
	}
	
	public String getName() {
		return _baseName;
	}
	
	public void setName(String baseName) {
		_baseName = baseName;
	}

}
